import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/fonts/iconfont.css'
import './assets/js/setRem'
import './assets/css/base.css'

import {
  Button,
  Tabbar,
  TabbarItem,
  Icon,
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  PullRefresh,
  List,
  NavBar,
  GoodsAction,
  GoodsActionIcon,
  GoodsActionButton,
  Popup,
  Card,
  Stepper,
  Form,
  Field,
  SubmitBar,
  Checkbox,
  SwipeCell,
  Search,
  Cell,
  Switch,
  Area,
  CellGroup,
  AddressList,
  ContactCard,
  Lazyload
} from 'vant'
// import $laert from './plugins/index'
// Vue.use($laert,{
//   a:10,
//   b:20
// })

import loading from './plugins/Loading/index'
Vue.use(loading)
Vue.use(Button)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Icon)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(PullRefresh)
  .use(List)
  .use(NavBar)
  .use(GoodsAction)
  .use(GoodsActionIcon)
  .use(GoodsActionButton)
  .use(Popup)
  .use(Card)
  .use(Stepper)
  .use(Form)
  .use(Field)
  .use(SubmitBar)
  .use(Checkbox)
  .use(SwipeCell)
  .use(Search)
  .use(Cell)
  .use(Switch)
  .use(Area)
  .use(CellGroup)
  .use(AddressList)
  .use(ContactCard)
  .use(Lazyload,{
    loading:'https://img1.baidu.com/it/u=1555841723,326803569&fm=26&fmt=auto',
    error:'https://img2.baidu.com/it/u=3913247085,2621295396&fm=253&fmt=auto&app=120&f=JPEG?w=640&h=400'
  })
    
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
